﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using INHSStudentRegistration;

namespace IrisanNHS
{
    public partial class MainForm : Form
    {
        public MainForm(string pass)
        {
            InitializeComponent();
            filestudentForm.Click += new EventHandler(filestudentForm_Click);
            viewstudentList.Click += new EventHandler(viewstudentList_Click);
            editstudentRecord.Click += new EventHandler(editstudentRecord_Click);
            fileexit.Click += new EventHandler(fileexit_Click);
            openAccountFormToolStrip.Click += new EventHandler(openAccountFormToolStrip_Click);
            updateUserAccounts.Click += new EventHandler(updateUserAccounts_Click);
        }

        void updateUserAccounts_Click(object sender, EventArgs e)
        {
            Form6 frm6 = new Form6(this);
            frm6.MdiParent = this;
            frm6.Show();
        }

        void openAccountFormToolStrip_Click(object sender, EventArgs e)
        {
            Form5 frm5 = new Form5(this);
            frm5.MdiParent = this;
            frm5.Show();
        }

        void fileexit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        void editstudentRecord_Click(object sender, EventArgs e)
        {
            Form4 frm4 = new Form4(this);
            frm4.MdiParent = this;
            frm4.Show();
        }

        void viewstudentList_Click(object sender, EventArgs e)
        {
            Form2 frm2 = new Form2(this);
            frm2.MdiParent = this;
            frm2.Show();
        }

        void filestudentForm_Click(object sender, EventArgs e)
        {
            Form1 frm1 = new Form1(this);
            frm1.MdiParent = this;
            frm1.Show();
        }
    }
}
